package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public class ReportCacheLevels extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public static final ReportCacheLevels None = new ReportCacheLevels( -1,"None",null);
    public static final ReportCacheLevels RawData = new ReportCacheLevels(0,"RawData","raw,init,sql");
    public static final ReportCacheLevels ReportData = new ReportCacheLevels(1,"ReportData","report,rpt");
    public int hashCode()
    {
        return super.hashCode();
    }

    protected ReportCacheLevels(int nId,String strName,String strAlias)
    {
        super(nId,strName);
    }

    public static ReportCacheLevels fromName(String strName)
    {
        return(ReportCacheLevels) IntegerPair.findConstant(ReportCacheLevels.class,strName,None);
    }

}
